package com.zjw.forum.exception;

import com.zjw.forum.common.AppResult;

public class ApplicationException extends RuntimeException{
    protected AppResult appResult;

    public ApplicationException(AppResult appResult) {
        super(appResult.getMessage());
        this.appResult = appResult;
    }

    public AppResult getAppResult() {
        return appResult;
    }

    public ApplicationException() {
        ;
    }
    public ApplicationException(String message) {
        super(message);
    }

    public ApplicationException(String message, Throwable cause) {
        super(message, cause);
    }

    public ApplicationException(Throwable cause) {
        super(cause);
    }
}
